package com.itheima.HomeWork.homework03;

import java.io.FileOutputStream;
import java.io.IOException;

public class Demo {
    public static void main(String[] args) throws IOException {
        String str = "登鹳雀楼\n" +
                "王之涣\n" +
                "白日依山尽，\n" +
                "黄河入海流。\n" +
                "欲穷千里目，\n" +
                "更上一层楼。";
        FileOutputStream fio = new FileOutputStream("E:\\img1\\a.txt");
        fio.write(str.getBytes());
        fio.close();

    }
}
